﻿<UserControl x:Class="Monti.Docking.Controls.BorderDockHintDisplay"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" AllowDrop="True"
             Opacity="0.6" IsHitTestVisible="True"
             d:DesignHeight="300" d:DesignWidth="300">
   
   <UserControl.Resources>
      <BooleanToVisibilityConverter x:Key="_BoolToVisi" />
   </UserControl.Resources>
   
   <Grid>
      
      <Grid>
         
         <Grid.RowDefinitions>
            <RowDefinition Height="0.3*" />
            <RowDefinition Height="*" />
            <RowDefinition Height="0.3*" />
         </Grid.RowDefinitions>
         
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.3*" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="0.3*" />
         </Grid.ColumnDefinitions>

         <Border Grid.Row="{Binding Path=RectRow}"
                 Grid.RowSpan="{Binding Path=RectRowSpan}"
                 Grid.Column="{Binding Path=RectColumn}"
                 Grid.ColumnSpan="{Binding Path=RectColumnSpan}"
                 x:Name="_DockPositioner"
                 BorderBrush="LightBlue"
                 IsHitTestVisible="False"
                 BorderThickness="5"
                 Opacity="{Binding Path=DockHintOpacity}">
            <Rectangle Fill="DarkBlue" IsHitTestVisible="False" />
         </Border>

      </Grid>
      
      <Grid>

         <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
         </Grid.RowDefinitions>

         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto" />
         </Grid.ColumnDefinitions>

         <Image Source="pack://application:,,,/Monti;component/Images/DockHintTop.png"
                Width="29"
                Height="31"
                IsHitTestVisible="False"
                Grid.Row="0"
                Grid.Column="1"
                Visibility="{Binding Path=ShowTopToolWindow, Converter={StaticResource _BoolToVisi}}" />

         <Image Source="pack://application:,,,/Monti;component/Images/DockHintBottom.png"
                Width="29"
                Height="31"
                IsHitTestVisible="False"
                Grid.Row="2"
                Grid.Column="1"
                Visibility="{Binding Path=ShowBottomToolWindow, Converter={StaticResource _BoolToVisi}}" />

         <Image Source="pack://application:,,,/Monti;component/Images/DockHintLeft.png"
                Width="31"
                Height="29"
                IsHitTestVisible="False"
                Grid.Row="1"
                Grid.Column="0"
                Visibility="{Binding Path=ShowLeftToolWindow, Converter={StaticResource _BoolToVisi}}" />

         <Image Source="pack://application:,,,/Monti;component/Images/DockHintRight.png"
                Width="31"
                Height="29"
                IsHitTestVisible="False"
                Grid.Row="1"
                Grid.Column="2"
                Visibility="{Binding Path=ShowRightToolWindow, Converter={StaticResource _BoolToVisi}}" />

      </Grid>
   </Grid>
</UserControl>
